package com.yiliao.service;

import java.util.Map;

import com.yiliao.util.MessageUtil;

public interface ChannelService {

	/**
	 * 获取渠道公告列表
	 * @param page
	 * @return
	 */
	Map<String, Object> getChannelBulletinList(int page);
	/**
	 * 保存或修改
	 * @param t_id
	 * @param t_title
	 * @param t_img
	 * @param t_content
	 * @return
	 */
	MessageUtil saveOrUpdateChannelBulletin(Integer t_id,String t_title,String  t_img,String t_content);
	
	
	/**
	 * 删除数据
	 * @param t_id
	 * @return
	 */
	MessageUtil delChannelBulletin(int t_id);
	
	/**
	 * 获取落地页列表
	 * @param page
	 * @return
	 */
	Map<String, Object> getFlooringPageList(int page);
	
	/**
	 * 新增或修改落地页列表
	 * @param t_id
	 * @param t_name
	 * @param t_jump_url
	 * @return
	 */
	MessageUtil saveOrUpdateFlooringPage(Integer t_id,String t_name,String t_jump_url);
	
	/**
	 *   删除落地页
	 * @param t_id
	 * @return
	 */
	MessageUtil delFlooringPage(int t_id);
	
	/**
	 *  获取一级渠道列表
	 * @param page
	 * @return
	 */
	Map<String, Object> getChannelList(int page);
	
	/**
	 * 启用或者停用渠道代理
	 * @param t_id
	 * @param start_using
	 * @return
	 */
	MessageUtil startOrStopChannel(int t_id,int start_using);
	
	/**
	 * 获取明细
	 * @param t_id
	 * @return
	 */
	Map<String, Object> getChannelDetail(int t_id);
	
	/**
	 * 保存数据
	 * @param t_id
	 * @param t_real_name
	 * @param t_gold_commission
	 * @param t_vip_commission
	 * @param t_settlement_type
	 * @param t_bank_number
	 * @param t_bank_of_deposit
	 * @param t_account_name
	 * @param t_remarks 
	 * @param t_settlement_percent 
	 * @param t_settlement_method 
	 * @param login_pass 
	 * @param login_name 
	 * @return
	 */
	MessageUtil updateChannel(int t_id,String t_real_name,String t_channel_name,Double t_gold_commission,Double t_vip_commission,int t_settlement_type,String t_bank_number,String t_bank_of_deposit,String t_account_name, String login_name, String login_pass, String t_settlement_method, String t_settlement_percent, String t_remarks,int t_channel_price);

	/**
	 * 获取渠道数据
	 * @param page
	 * @param condition_name 
	 * @param condition_id 
	 * @param endTime 
	 * @param beginTime 
	 * @param t_settlement_method 
	 * @return
	 */
	Map<String, Object> getChannelDataList(int page, int t_settlement_method, String beginTime, String endTime, int condition_id, String condition_name);
	
	
	/**
	 * 点击结算
	 * @param t_id
	 * @return
	 */
	MessageUtil settleAccountChannelData(int t_id);
	
	/**
	 * 获取二级渠道列表
	 * @param page
	 * @param condition_name 
	 * @param condition_id 
	 * @param t_settlement_method 
	 * @return
	 */
	Map<String, Object> getTwoChannelList(int page, int t_settlement_method, int condition_id, String condition_name);
	
	/**
	 * 获取素材列表
	 * @param page
	 * @return
	 */
	Map<String, Object> getChannelMaterial(int page);
	
	/**
	 * 删除渠道素材
	 * @param t_id
	 * @return
	 */
	MessageUtil delChannelMaterial(int t_id);
	
	
	/**
	 * 保存或修改渠道素材
	 * @param t_id
	 * @param t_img
	 * @param t_size
	 * @return
	 */
	MessageUtil saveOrUpdateChannelMaterial(Integer t_id,String t_img,String t_size);
	Map<String, Object> getChannelList(int page, int t_settlement_method, int condition_id, String condition_name);
	MessageUtil setChannelPercent(int t_id, int t_settlement_percent);
	MessageUtil setChannelrelease(int t_id, int t_is_release);
	
	Map<String, Object> getChannelDowList(Integer page, String pageSize);
	MessageUtil delChannelPacById(Integer t_id);
	MessageUtil addChannelPac(String t_pac_name, String t_pac_version);

}
